package wei.xinya.pattern.creational.singleton;

/**
 * 饿汉静态块单例模式
 */
public class HungryStaticSingleton {
    private static final HungryStaticSingleton singleton;

    static {
        singleton = new HungryStaticSingleton();
    }

    private HungryStaticSingleton() {
    }

    public HungryStaticSingleton getSingleton() {
        return singleton;
    }
}
